import { request } from '@/utils/service'
import type * as Order from '@/api/order/types/order'

export function queryOrderDetailInfo(data: Order.queryOrderDetailInfoRequestData) {
  return request<Order.queryOrderDetailInfoResponse>({
    url: '/queryOrderDetailInfo',
    method: 'post',
    data
  })
}
export function queryStoreOrderDetailInfo(data: Order.queryStoreOrderDetailInfoRequestData) {
  return request<Order.queryStoreOrderDetailInfoResponse>({
    url: '/queryStoreOrderDetailInfo',
    method: 'post',
    data
  })
}
export function changeOrderDetailInfo(data: Order.changeOrderDetailInfoRequestData) {
  return request<Order.changeOrderDetailInfoResponse>({
    url: '/changeOrderDetailInfo',
    method: 'post',
    data
  })
}
export function queryShortTermDetail(data: Order.queryShortTermDetailRequestData) {
  return request<Order.queryShortTermDetailResponse>({
    url: '/queryShortTermDetail',
    method: 'post',
    data
  })
}
export function adjustShortTermBikeFee(data: Order.adjustShortTermBikeFeeRequestData) {
  return request<Order.adjustShortTermBikeFeeResponse>({
    url: '/adjustShortTermBikeFee',
    method: 'post',
    data
  })
}
export function queryOrderRefundInfo(data: Order.queryOrderRefundInfoRequestData) {
  return request<Order.queryOrderRefundInfoResponse>({
    url: '/queryOrderRefundInfo',
    method: 'post',
    data
  })
}
/** 取消订单 */
export function OrderConfirm(data: Order.OrderConfirmRequestData) {
  return request<Order.OrderConfirmResponse>({
    url: '/OrderConfirm',
    method: 'post',
    data
  })
}
/** 余额退款申请 */
export function submitBalanceRefund(data: Order.submitBalanceRefundRequestData) {
  return request<Order.submitBalanceRefundResponse>({
    url: '/submitBalanceRefund',
    method: 'post',
    data
  })
}
